<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>后台管理</title>
    <link href="/Public/Admin/css/bootstrap.min.css" rel="stylesheet">
    <link href="/Public/Common/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
    <link href="/Public/Admin/css/base.css" rel="stylesheet">
    <script src="/Public/Common/js/jquery-1.9.1.min.js"></script>

</head>
<body>
<script type="text/javascript" src="/Public/Admin/js/ajax-operate.js"></script>
<!--主页面-->
<div id="main-content" class="content">
    <ul class="breadcrumb">
        <li><a href="/">首页</a></li>
        <li class="active"><a href="">会员管理</a></li>
        <li class="active">管理员列表</li>
    </ul>

    <div class="page-header page-header1 clearfix">
        <h3>管理员管理</h3>
        <ul class="nav nav-tabs">
            <li class="active">
                <a href="<?php echo U('Organization/index');?>">管理员列表</a>
            </li>
            <li>
                <a href="<?php echo U('Admin/addAdmin');?>">添加管理员</a>
            </li>
        </ul>
    </div>
    <div class="search-content clearfix">
        <form action="<?php echo U('Admin/adminList');?>" method="post" class="search-form form-inline fl" role="form">
            <div class="form-group">
                <label class="sr-only">管理员ID</label>
                <input class="earch-input form-control" id="o_id" type="text" name="a_id"
                       placeholder="管理员ID" style="max-width: 100px;"/>　
            </div>
            <div class="form-group">
                <label class="sr-only">管理员账号</label>
                <input class="earch-input form-control" id="nickname" type="text" name="account" placeholder="管理员账号" style="max-width: 150px;"/>　
            </div>
            <button type="submit" class="btn derive">查询</button>
            　
        </form>

    </div>
    <div class="content-box-table content-box-content">
        <form action="<?php echo U('Admin/del');?>" method="post" class="batch-form">
            <table class="table table-striped table-framed table-hover">
                <thead>
                <tr>
                    <th width="4%">编号</th>
                    <th width="10%">添加时间</th>
                    <th>账号</th>
                    <th>最后登录时间</th>
                    <th width="6%">操作</th>
                </tr>
                </thead>
                <tbody class="tbody">
                <?php if(empty($list)): ?><tr>
                        <td colspan="10"><span style="font-size:14px;">暂无数据</span></td>
                    </tr><?php endif; ?>
                <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$admin): $mod = ($i % 2 );++$i;?><tr>
                        <td><input type="checkbox" value="<?php echo ($admin['a_id']); ?>" name="a_id[]"/>&nbsp;&nbsp;<?php echo ($admin['a_id']); ?>
                        </td>
                        <td><?php echo (date('Y-m-d',$admin['ctime'])); ?></td>
                        <td><?php echo ($admin['account']); ?></td>
                        <td><?php echo (date('Y-m-d H:i:s',$admin['last_login_time'])); ?></td>

                        <td>
                            <a href="<?php echo U('Admin/editAdmin',array('a_id'=>$admin['a_id']));?>" title="编辑" class="modify">
                                <span class="icon glyphicon glyphicon-pencil"></span>
                            </a>&nbsp;
                            <a href="#" title="删除" class="delete-delete">
                                <span class="icon glyphicon glyphicon-remove"></span>
                            </a><input type="hidden" value="<?php echo U('Admin/deleteAdmin',array('a_id'=>$admin['a_id']));?>">
                            </if>
                        </td>
                    </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                </tbody>
                <tfoot>
                <tr>
                    <td colspan="20">
                        <div class="bulk-actions fl">
                            <input type="button" class="btn delete-batch" value="批量删除">　
                            <a href="javascript:;" class="btn btn-primary">统计：<?php echo ($o_count); ?>人</a>
                        </div>
                        <div class="fr">
                            <?php echo ($page); ?>
                        </div>
                    </td>
                </tr>
                </tfoot>
            </table>
        </form>
    </div>
</div>
<script type="text/javascript" src="/Public/Admin/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/Public/Admin/js/common.js"></script>
</body>
</html>